package com.itestor.iptv.modules.common.domain;

import java.io.Serializable;

/**
 * RoleGroupRobot复合主键类
 * @author masaki
 *
 */
public class RoleGroupRobotPK implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -4197962073662772075L;
	/**
	 * 设备表主键
	 */
	private Integer idRobot;
	/**
	 * 权限表主键
	 */
	private Integer idRoleGroup;
	
	public RoleGroupRobotPK() {
	}
	public Integer getIdRobot() {
		return idRobot;
	}
	public Integer getIdRoleGroup() {
		return idRoleGroup;
	}
	public void setIdRobot(Integer idRobot) {
		this.idRobot = idRobot;
	}
	public void setIdRoleGroup(Integer idRoleGroup) {
		this.idRoleGroup = idRoleGroup;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idRobot == null) ? 0 : idRobot.hashCode());
		result = prime * result
				+ ((idRoleGroup == null) ? 0 : idRoleGroup.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final RoleGroupRobotPK other = (RoleGroupRobotPK) obj;
		if (idRobot == null) {
			if (other.idRobot != null)
				return false;
		} else if (!idRobot.equals(other.idRobot))
			return false;
		if (idRoleGroup == null) {
			if (other.idRoleGroup != null)
				return false;
		} else if (!idRoleGroup.equals(other.idRoleGroup))
			return false;
		return true;
	}
	
}
